package com.ossjk.oa.advisory.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.ossjk.core.base.entity.BaseEntity;

/**
 * <p>
 * 客户跟进记录
 * </p>
 *
 * @author chair
 * @since 2019-02-15
 */
public class Customerfw extends BaseEntity<Customerfw> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId("id")
    private String id;
    /**
     * 客户id
     */
    @TableField("cid")
    private String cid;
    /**
     * 跟进人id
     */
    @TableField("eid")
    private String eid;
    /**
     * 时间
     */
    @TableField("time")
	@JSONField(format = "yyyy-MM-dd")
    private Date time;
    /**
     * 内容
     */
    @TableField("content")
    private String content;
    /**
     * 类型：1-主动跟进、2-客户咨询、3-分配跟进人
     */
    @TableField("type")
    private BigDecimal type;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getEid() {
        return eid;
    }

    public void setEid(String eid) {
        this.eid = eid;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public BigDecimal getType() {
        return type;
    }

    public void setType(BigDecimal type) {
        this.type = type;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Customerfw{" +
        ", id=" + id +
        ", cid=" + cid +
        ", eid=" + eid +
        ", time=" + time +
        ", content=" + content +
        ", type=" + type +
        "}";
    }
}
